{{extend 'layout.html'}}

<h1>填充模板
    {{if session.template_title:}}
        <span style="font-size:14px; color: green; margin: 0 0 0 15px">( 已选模板：{{=session.template_title}} )</span>
        {{=A('重新选择模板', _href=URL(r=request, c='template', f='index'), _style='font-size: 12px; margin: 0 0 0 7px; letter-spacing: 0;')}}
    {{pass}}
</h1>

{{if not session.template_title:}}
    {{=A('请先选择模板', _href=URL(r=request, c='template', f='index'), _style='font-size: 1.5em;')}}
    <br /><br /><br />
{{else:}}
    <div id="photo_show">
    {{if session.search_items:}}
        <h3>选择的商品是：{{=A('重新添加商品', _href=URL(r=request, c='stock', f='index'), _style='font-size: 12px; margin-left: 15px;')}}</h3>
        {{for i in session.search_items:}}
            {{=IMG(_src=i['pic_path']+'_160x160.jpg')}}
        {{pass}}
        <br />
    {{else:}}
        {{=A('现在填充模板', _href=URL(r=request, c='stock', f='index'), _style='font-size: 1.5em')}}
    {{pass}}
    </div>
{{pass}}


<br /><br />
<form method="post" enctype="multipart/form-data" action="/{{=APPLICATION}}/preview">
    <input type="submit" value="下一步 (预览)" style="padding: 2px 7px;"/>
</form>

<br /><br /><br />
